package bim.domain;

import java.util.List;

import org.apache.commons.lang3.builder.ToStringBuilder;

/**
 * 角色.
 * 
 * @author calvin
 */

public class Role extends BaseEntity{ 
	private String name; //名称：英文，用于授权
	private String label;//标签：中文，用于前台显示
	private String permissions;
	
	public Role() {
	}

	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}


	public Role(String id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPermissions() {
		return permissions;
	}

	public void setPermissions(String permissions) {
		this.permissions = permissions;
	}


	public List<String> getPermissionList() {
//		return ImmutableList.copyOf(StringUtils.split(permissions, ","));
		return null;
	}

	@Override
	public String toString() {
		return ToStringBuilder.reflectionToString(this);
	}
}
